use std::sync::Arc;

use axum::extract::State;

use crate::{middleware::Auth, AppState};

pub async fn index(State(state): State<Arc<AppState>>, Auth(username): Auth) -> String {
    let version = state.version.clone();
    format!("Hello, 世界 {} - {}", version, username)
}
